import { defineAsyncComponent } from 'vue';
import { RouteRecordRaw } from 'vue-router';
import Index from '@/views/home/index.vue';
import Layout from '@/layout/index.vue';

const routes: Array<RouteRecordRaw> = [
	{
		path: '/',
		component: Layout,
		redirect: '/index',
		children: [
			{
				path: '/index',
				name: 'home',
				component: Index,
				meta: {
					title: '首页',
					icon: 'home'
				}
			},
			{
				path: '/maotu',
				name: 'maotu',
				component: () => import('@/views/maotu/index.vue'),
				meta: {
					title: '首页',
					icon: 'home'
				}
			},
			{
				path: '/test',
				name: 'test',
				component: () => import('@/views/test/index.vue'),
				meta: {
					title: '测试'
				}
			},
			{
				path: '/antdx6',
				name: 'antdx6',
				component: () => import('@/views/antdx6/index.vue'),
				meta: {
					title: 'antdx6'
				}
			},
			{
				path: '/three',
				name: 'three',
				component: () => import('@/views/three/index.vue'),
				meta: {
					title: 'three'
				}
			}
		]
	}
];
export default routes;
